<?php 

include '../function.php';
// include './Gy.class.php';
// include './Jiqi.class.php';
// include './Car.class.php';
// include './Abstract.Dongwu.class.php';
// include './Dog.class.php';
// include './Cat.class.php';
// include './Interface.Lan.class.php';
// include './Interface.Usb.class.php';
// include './Pc.class.php';

function __autoload($classname)
{
	$paths = array(
		$classname.".class.php",
		"Interface.".$classname.".class.php",
		"Abstract.".$classname.".class.php",
		);

	var_dump($paths);
	foreach ($paths as  $path) {
		if(file_exists($path)){
			include $path;
			break;
		}
	}
}

$obj = new Ren();

$config = array(
	'path'=>'./bb/',
	'type'=>'jpg,png,gif',
	'max_size'=>'10000'
	);

$obj = new Upload($config);

$obj ->save();

// $obj = new Pc();

// $obj->path = 'xxxxxx';

// $obj->name= "bbbb";

// $obj->getConfig();


// isset($obj->num);

// $obj ->sendData();

// $obj = new Dog();
// $obj->run();

// $obj = new Cat();
// $obj->peichi();
// echo __CLASS__;
//静态属性方法调用
// Car::dd();
// Car::$num;

// $obj = new Car("奥迪",'red');

// $obj->shownum();

// $obj1 = new Car("宝马",'blue');

// $obj1->shownum();


// $obj2 = new Car("宝马",'blue');

// $obj2->shownum();

// $obj->test();

// var_dump($obj);

// $obj->name="奥迪";

// $obj->run();


// $obj1 = new Car();

// $obj1->name="宝马";

// $obj1->run();












 ?>